package com.jfree.zuul;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ZuulErrAdvice {

    @ExceptionHandler(Exception.class)
    public String exception(Exception e) {
        return "RestControllerAdvice--->"+e.toString();
    }
}
